package com.bawei.permission.feign;


import com.bawei.permission.entity.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-user")
public interface UserService {

    /**
     * 根据token获取当前的用户信息
     * @param token
     * @return
     */
    @GetMapping("/user/getLoginUserInfo")
    public UserVo getLoginUserInfo(@RequestParam("token") String token);
}
